package com.songlanyun.modules.shop.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.songlanyun.common.utils.PageUtils;
import com.songlanyun.modules.shop.entity.ShopApplyEntity;
import com.songlanyun.modules.shop.entity.ShopEntity;
import com.songlanyun.modules.shop.model.dto.ShopApplyDTO;

import java.util.List;
import java.util.Map;

/**
 * 会员申请商家表
 *
 * @author Mark
 * @email sunlightcs@gmail.com
 * @date 2020-11-04 16:06:34
 */
public interface ShopApplyService extends IService<ShopApplyEntity> {

    PageUtils queryPage(Map<String, Object> params);

    ShopApplyEntity audit(ShopApplyDTO dto);

    List<ShopApplyEntity> getshopApplyByUserId(Long userId, boolean unionBusiness);

    ShopApplyEntity getOneShopApply(Long userId, boolean unionBusiness);

    ShopApplyEntity getById(Long id, boolean b);

    ShopEntity saveShopByApply(ShopApplyDTO dto);

    ShopApplyEntity copyAndSave(ShopApplyDTO dto);

    ShopEntity setShopByApply(ShopApplyEntity apply);

    ShopApplyEntity getApplyByUserId(Long userId, boolean unionBusiness);

    ShopApplyEntity initApply(ShopApplyDTO dto, Long userId);
}

